package model

import (
	"fmt"

	"application/global"
)

func AddHouse(house House) uint {
	fmt.Println("12")
	err := global.DB.Create(&house).Error
	if err != nil {
		fmt.Println(err)
		return 0
	}
	return house.ID
}
